package propertyfile.guice;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import com.google.inject.AbstractModule;
import com.google.inject.name.Names;

public class PropertiesModule extends AbstractModule {


    public void configure() {
        Properties properties = new Properties();
        try {
            FileInputStream fis = new FileInputStream("Properties.xml");


            properties.loadFromXML(fis);
        } catch (IOException e) {
            // throw exception
        }


        Names.bindProperties(binder(), properties);
    }



}